#{extends 'Admin_main.html' /}
<div class="block span10" style="margin-left: 20px;">
    <a href="#tablewidget" class="block-heading" data-toggle="collapse">菜单管理</a>
    <div class="btn-toolbar" style="margin-left: 20px;">

        <a href="" class="btn btn-primary">导入</a>
        <a href="" class="btn btn-primary">导出</a>
        <a href="#myModal" data-toggle="modal" class="btn">删除</a>
        <div class="btn-group">
        </div>
    </div>
    <div id="tablewidget" class="block-body collapse in">
        <table class="table table-bordered table-striped">

            <tbody><tr>
                <th>操作</th>
                <th>编号</th>
                <th>账号</th>
                <th>密码</th>
                <th>是否启用</th>
                <th>操作</th>
            </tr>
            #{list list,as:'list'}

                <tr>
                    <td><input type="checkbox" class="caozuo" value="1"></td>
                    <td>${list.Id}</td>
                    <td>${list.AdminName}</td>
                    <td>${list.AdminPwd}</td>
                    #{if list.AdminState==0}
                         <td>启用</td>
                          <td><a href="/admin/admin/Operation?Id=${list.Id}&AdminState=0">禁用</a></td>
                    #{/if}
                    #{if list.AdminState==1}
                        <td>禁用</td>
                        <td><a href="/admin/admin/Operation?Id=${list.Id}&AdminState=1">启用</a></td>
                    #{/if}

                </tr>
            #{/list}
            </tbody>
        </table>
    </div>
    <div class="well" style="padding: 20px;margin: 20px;">
        <ul class="nav nav-tabs">
            <li id="hoems" class="active"><a href="#home" data-toggle="tab">增加</a></li>
            <li id="profiles"><a href="#profile" data-toggle="tab">修改</a></li>
        </ul>
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane active in" id="home">
                <form id="tab" action="">
                    <label>用户账号</label>
                    <input type="text" value="" name="userName" class="input-xlarge">
                    <label>用户密码</label>
                    <input type="text" value="" name="userPwd" class="input-xlarge">
                    <input type="button" id="add" class="btn btn-primary pull-right" value="提交">
                </form>
            </div>
            <div class="tab-pane fade" id="profile">
                <form id="tab" action="">
                    <label>用户账号</label>
                    <input type="text" value="" name="userName" class="input-xlarge">
                    <label>用户密码</label>
                    <input type="text" value="" name="userPwd" class="input-xlarge">
                    <input type="button" id="add" class="btn btn-primary pull-right" value="提交">
                </form>
            </div>
        </div>

    </div>
</div>